

import { request } from '@/utils/request'
export default ({
    //马克思钥匙
    getInitKey() {
        return request("/sign/login/get", "post")
    },
    getNumber(status) {
        return request("/sign/captcha", "get", status,)
    },
    login_signin(data) {
        return request("/sign/login/signin", "post", data,)
    },
    session_fetch(data) {//初始化会话
        return request("/sign/access/session/fetch", "get", data,)
    },
    loginHistory_fetch(data) {//系统登录日志
        return request("/sign/historys/loginHistory/fetch", "get", data,)
    },
    loginAppsHistory_fetch(data) {//应用访问日志
        return request("/sign/historys/loginAppsHistory/fetch", "get", data,)
    },
    thirdLogin(oneParam, rememberMe) {
        return request("/sign/login/get?_allow_anonymous=+" + oneParam + "&remember_me=" + rememberMe)
    },
    goThirdLogin(provider) {
        return request("/sign/logon/oauth20/authorize/" + provider)
    },
    terminate(data) {
        return request("/sign/access/session/terminate", "delete", data)
    },
    oauthv20(data) {
        return request("/sign/authz/oauth/v20/approval_confirm/get/" + data, "get")
    },
    getMenuTree() {
        return request("/sign/mxkMenu/getMenuTree", "get")
    },
    approval(data) {
        return request("/sign/authz/oauth/v20/authorize/approval?user_oauth_approval=" + data.user_oauth_approval + "&client_id=" + data.clientId, "post", data)
    },
    getMessaageCode(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/produceOtp?mobile=" + data.mobile + "&state=" + data.state + "&captcha=" + data.captcha, "post")
    },
    //修改密码
    //sign/forgotpassword/setpassword
    updatePassword(data) {
        // sign/forgotpassword/produceOtp

        return request("/sign/forgotpassword/setpassword?forgotType=mobile&userId="+ data.userId +"&username="+ data.username +"&state=" + data.state + "&password=" + data.password + "&confirmPassword=" + data.confirmPassword + "&otpCaptcha=" + data.otpCaptcha, "post")
    },


    //获取新平台token

    getNewToken(){

    },
    ///user/login
    getlogin(data) {
        // sign/forgotpassword/produceOtp
        return request("/sign/user/login", "post", data)
    },
    //获取树节点菜单
     getNewTreeMenus(){
        return request("/sign/jzg-new-menu/getJzGMenuTree", "get")
     },

     //获取系统可用权限
     getUserPermissionInfo(){
        return request("/sign/jzg-new-menu/getUserPermissionInfo", "get")
     },
     //在岗教师
    //  //t-jzg/getOnGuardFaculty
    getOnGuardFaculty(data){
        return request("/sign/t-jzg/getOnGuardFaculty", "get",data)
     },
     //获取教职工详情
     ///t-jzg/getOnGuardFacultyInfo
     getOnGuardFacultyInfo(data){
        return request("/sign/t-jzg/getOnGuardFacultyInfo", "get",data)
     },
     //审查身份证
     ///t-jzg/examineCard
     examineCard(data){
        return request("/sign/t-jzg/examineCard", "post",data)
     },
     //获取教职工初始数据///t-jzg/getFacultyinitial
     getFacultyinitial(data){
        return request("/sign/t-jzg/getFacultyinitial", "get",data)
     },
     //新增教职工 ///t-jzg/saveFaculty
     saveFaculty(data){
        return request("/sign/t-jzg/saveFaculty", "post",data)
     },
     //修改身份证 ///t-jzg/updateFacultyId
     updateFacultyId(data){
        return request("/sign/t-jzg/updateFacultyId", "post",data)
     },

     ///t-jzg/moveFacultyList 调动
     moveFacultyList(data){
        return request("/sign/t-jzg/moveFacultyList", "get",data)
     },
     moveSchoolFacultyList(data){
        return request("/sign/t-jzg/moveSchoolFacultyList", "get",data)
     },
 //moveSchoolFacultyList

     ///t-jzg/moveFaculty
     moveFaculty(data){
        return request("/sign/t-jzg/moveFaculty", "post",data)
     },
    //  //t-jzg/moveFacultyConsent 同意教职工
    moveFacultyConsent(data){
        return request("/sign/t-jzg/moveFacultyConsent", "post",data)
    },

    //获取系统用户///t-jzg/getUserList
    getUserList(data){
        return request("/sign/t-jzg/getUserList", "get",data)
    },
    saveUserList(data){
        return request("/sign/t-jzg/saveUserList", "post",data)
    },
    removeUerList(data){
        return request("/sign/t-jzg/removeUerList", "post",data)
    },
    ///t-jzg/removeUerList

    // //t-jzg/saveUserList
    authen(data){
        return request("/sign/authen/jzg", "get",data)
    },
})
